module.exports = angular.module 'index', []
.config ($stateProvider)->
  $stateProvider
  .state 'index',
    url: '/index'
    templateProvider: ($q)->
      return $q (resolve)->
        require.ensure [], ->
          resolve require('../../../views/index.jade')()
    controller: 'IndexCtrl'
    resolve:
      _setTitle: ($rootScope)-> $rootScope.$title = "基础服务管理平台"
      loadUserListCtrl: ($q, $ocLazyLoad)->
        return $q (resolve)->
          require.ensure [], ->
            module = require './index.ctrl.coffee'
            $ocLazyLoad.load name: 'index'
            resolve module.controller
    ncyBreadcrumb:
      label: "首页"
